//
//  IM_NewMessageCoder.h
//  BleTestDemo
//
//  Created by cjg on 2019/8/22.
//  Copyright © 2019 cjg. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "IMTCANMessage.h"

@interface IM_NewMessageCoder : NSObject

@property (nonatomic , strong)NSData *CodeKey;
@property (nonatomic , strong)NSData *packData;       // 收到的数据不包含包头
@property (nonatomic , assign)NSUInteger checkLength; // 校验数据的长度
@property (nonatomic , assign)NSUInteger keyLength;   // key 的长度
@property (nonatomic , assign)NSUInteger tabLength;   // tab 的长度

- (IMTCANMessage *)transformMessageFromData:(NSData *)data;
- (NSData *)transformDataFromMessage:(IMTCANMessage *)message;

@end


